package com.googlecode.simpleqms

import grails.converters.JSON

class EmployeeController {
    def EmployeeService

    def getList = {
        render EmployeeService.getList(params) as JSON
    }

    def getJobPositions = {
        render EmployeeService.getJobPositions() as JSON
    }

    def getElement = {
        render EmployeeService.getElement(params) as JSON
    }

    def addElement = {
        render EmployeeService.addElement(params) as JSON
    }

    def modElement = {
        render EmployeeService.modElement(params) as JSON
    }

    def delElement = {
        render EmployeeService.delElement(params) as JSON
    }
}